home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
smaltalk
/
manchest.lha
/
MANCHESTER
/
V
/
VZoom.st
< prev
Wrap
Text File
|
1993-07-24
|
1KB
|
53 lines
" NAME VZoom
AUTHOR shin@mcshh.hanse.de (Thomas Braun)
FUNCTION ZOOM function on middle mouse button
ST-VERSION V
PREREQUISITES
CONFLICTS
DISTRIBUTION world
VERSION 1
DATE 11 Aug 90
SUMMARY ACTIVATE MIDDLE MOUSE BUTTON FOR ZOOM FUNCTION
10 August 1990 - Thomas Braun
This File installs the zoom function [F8] on the
middle button (if u hv!!) :-)
Newsgroups: comp.lang.smalltalk
Summary: Changes to TerminalStream class
Message-ID: <7905@mcshh.hanse.de>
Date: 11 Aug 90 04:38:04 GMT
"
!
"!
Transcript cr;
show: 'Filing in TerminalStream changes...'!
! TerminalStream methods !
middleButton: value
"Private - Decode middle mouse button down event."
mouseOffset := Cursor offset.
mouseTime := Time mouseClockValue.
value = 16r3 ifTrue: [^ZoomFunction].
^SetLoc !
mouseButtonDown
"Private - Decode all button down events."
| button value |
MouseEvent := true.
button :=
(value := CurrentEvent value) bitAnd: 16r3.
button = 16r1 "left button down"
ifTrue: [^self leftButton: value].
button = 16r2 "right button down"
ifTrue: [^self rightButton: value].
button = 16r3 "middle button down"
ifTrue: [^self middleButton: value].
^SetLoc ! !
Transcript show: ' done.'; cr; cr!